package com.haolijun.eecms.dao;

import com.haolijun.eecms.entity.TbActive;
import com.haolijun.eecms.entity.TbApply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName TbApplyDao
 * @Description TODO
 * @Author hljstart
 * @Date 2023/3/12 11:36
 * @Version 1.0
 */
@Mapper
public interface TbApplyDao {

    // 删除报名
    public int delete(@Param("acId") Integer acId);

    // 活动报名
    public int applyActive(TbApply apply);

    // 查询用户是否已经报名
    public int searchUserIsApply(Map param);

    // 取消报名
    public int cancelActive(TbApply apply);
}
